<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS背景案例</title>
    <style>
        body {
            background-image: url(image/bj.webp);
            background-repeat: no-repeat;
            background-position: top center;
            background-attachment: fixed;
        }

        div {
            width: 2000px;
            height: 80px;
            /* background-color: transparent;
            background-image: url(image/logo.webp);
            background-repeat: no-repeat;
            background-position: center 10px; */
            background: rgba(0, 0, 0, 0.3) url(image/logo.webp) no-repeat fixed center 10px
        }

        h3 {
            width: 118px;
            height: 40px;
            background-color: white;
            font-size: 14px;
            font-weight: 400;
            line-height: 40px;
            background-image: url(image/login.png);
            background-repeat: no-repeat;
            background-position: left center;
            text-indent: 3em;
        }

        p {
            font-size: 40px;
            color: white;
        }
    </style>
</head>

<body>
    <div></div>
    <h3>
        立即登录
    </h3>
    <p>Hello World</p>
    <p>Hello World</p>
    <p>Hello World</p>
    <p>Hello World</p>
    <p>Hello World</p>
    <p>Hello World</p>
    <p>Hello World</p>
    <p>Hello World</p>
    <p>Hello World</p>
    <p>Hello World</p>
    <p>Hello World</p>
    <p>Hello World</p>
    <p>Hello World</p>
    <p>Hello World</p>
    <p>Hello World</p>
    <p>Hello World</p>

</body>

</html>